<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>UPLOAD</title>
</head>

<body>
  <!-- 
    form表单enctype参数：
    application/x-www-form-urlencoded => url?a&b&c&d 类型
    multipart/form-data => 分割多个部分/表单数据（并非只上传值）
    text/plain => 纯文件
   -->
  <form action="http://localhost:8080" method="POST" enctype="multipart/form-data">
    文件上传：
    <input type="file" name="f1" />
    <input type="submit" value="上传" />
  </form>
</body>

</html>